﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace CLEX.AdminUI.Services
{
    internal sealed class MessageService
    {
        public bool ConfirmDelete(string itemName)
        {
            return MessageBox.Show(string.Format("Are you sure want to delete {0}?", itemName), "CLEX - Admin", MessageBoxButton.YesNo) == MessageBoxResult.Yes;
        }

        public void ShowError(string message, Exception innerException)
        {
            MessageBox.Show(string.Format("{0}\n\n details: {1}", message, innerException), "CLEX - Admin", MessageBoxButton.OK);
        }
    }
}
